import request from '@/utils/request'

// 查询证书自定义内容配置列表
export function listCertificateField(query) {
  return request({
    url: '/training/certificateField/list',
    method: 'get',
    params: query
  })
}

// 查询证书自定义内容配置详细
export function getCertificateField(templateId) {
  return request({
    url: '/training/certificateField/' + templateId,
    method: 'get'
  })
}

// 新增证书自定义内容配置
export function addCertificateField(data) {
  return request({
    url: '/training/certificateField',
    method: 'post',
    data: data
  })
}

// 修改证书自定义内容配置
export function updateCertificateField(data) {
  return request({
    url: '/training/certificateField',
    method: 'put',
    data: data
  })
}

// 删除证书自定义内容配置
export function delCertificateField(templateId) {
  return request({
    url: '/training/certificateField/' + templateId,
    method: 'delete'
  })
}
